/**
 * 初始化数据
 * @param vm vue组件实例
 */
export function mountedFun(vm) {
    vm.loading = true
    const aboutList = localStorage.getItem('aboutList')
    if (aboutList && aboutList.length > 0) {

    } else {
        const mountedList = [
            {
                name: '完成产品需求文档撰写',
                flag: 1,
                id: '',
                dateUpTo: '2023-05-02',
                createUser: '郭冀鑫'
            },
            {
                name: '完成产品需求文档撰写',
                flag: 3,
                dateUpTo: '2023-05-02',
                createUser: '郭冀鑫'
            },
            {
                name: '完成产品需求文档撰写',
                flag: 2,
                dateUpTo: '2023-05-02',
                createUser: '郭冀鑫'
            },
        ]
        vm.$store.dispatch('about/setAboutList', mountedList).then(() => {
            vm.tableData = vm.$store.getters["about/aboutList"]
            vm.loading = false
        })
    }
}
